<ul>
  {% if q %}
    <h2>{{len_res}} Result{% ifnotequal len_res 1 %}s{% endifnotequal %} for "{{ q|escape }}": ({{time_res}} s.)</h2>
    {% if results %}
    <pre>
      {% for file in results %}
        {{ file|escape }}
      {% endfor %}
    </pre>
    {% else %}
      <p>No files found</p>
    {% endif %}
  {% endif %}
</ul>

